import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Logger } from '@nestjs/common';
import * as cookieParse from 'cookie-parser';

async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  app.use(cookieParse());
  await app.listen(3000);
  Logger.log('server started in port 3000', 'NestApplication');
}
bootstrap();
